ÂÁÓÉà ÒÏÕÔÉÎÅÓ ----------------------- ÎÏ ÌÉÓÔÉÎÇ ÐLACE A SHIFTED Ì IN A ÒÅÍ STATEMENT AT THE START OF THE PROGRAM. ÔHE PROGRAM CANNOT BE LISTED UNLESS A LINE NUMBER BEYOND THE ÒÅÍ STATEMENT IS SPECIFIED. ************************************************************** ÉÎÄÅÎÔ ÌÉÓÔÉÎÇÓ ÔO INDENT PROGRAM LISTINGS ON THE 64, MAKE THE FIRST CHARACTER AFTER THE LINE NUMBER A SHIFTED SPACE. ÔHE REMAINING CHARACTERS ON THAT LINE WILL NOT BE LEFT JUSTIFIED WHEN YOU LIST THE PROGRAM. ÔHIS ALLOWS YOU TO USE LOOP INDENTATION. 100 ÒÅÍ ÓÁÍÐÌÅ ÌÏÏÐ 110 ÆÏÒ É=1ÔÏ10 120 ÐÒÉÎÔ "ÃÏÍÐÕÔÅÒÓ ÁÒÅ ÆÕÎ!" 130 ÐÒÉÎÔ 140 ÎÅØÔ 150 ÅÎÄ ************************************************************** ÍÁËÉÎÇ Á ÂÁÓÉà ÂÕÇ ÕÓÅÆÕÌ ×HEN DOCUMENTING ÇÏÓÕÂS AND ÇÏÔÏS, INSTEAD OF USING ÒÅÍ, AS IN: ÇÏÓÕ 1000:ÒÅÍ *ÉÎÐÕÔ ÄÁÔÅ ÇÏÓÕ 2000:ÒÅÍ *ÅÔÃÅÔÅÒÁ ÙOU CAN FIT MORE COMMENTS ON THE LINE BY LEAVING OUT THE ÒÅÍ, AND FOLLOWING THE DESTINATION LINE NUMBER WITH ANY CHARACTER: ÇÏÓÕ 1000'ÉÎÐÕÔ ÄÁÔÅ ÇÏÓÕ 2000'ÅÔÃÅÔÅÒÁ *************************************************************** ÉÍÐÒÏÖÅÄ ÉÎÐÕÔ Á QUESTION MARK IS NOT DISPLAYED. [ÒÅÔÕÒÎ] DOESN'T STOP PROGRAM EXECUTION: 100 ÐÒÉÎÔ "ÅÎÔÅÒ ÙÏÕÒ ÎÁÍÅ"; 110 ÏÐÅÎ1,0:ÉÎÐÕÔ#1,Î$;ÐÒÉÎÔ:ÃÌÏÓÅ1 120 ÐÒÉÎÔ#1,ÃÈÒ$(16)"08";Î$ 130 ÃÌÏÓÅ ******************************************************************* ÐÒÉÎÔÅÒ ÔÁ ÙOU MAY USE THE ÔÁ FUNCTION WITH THE 64 AND VARIOUS PRINTERS AS FOLLOWS: 100 ÏÐÅÎ1,4 110 Î$="ÔÅÓÔ" 120 ÐÒÉÎÔ#1,ÃÈÒ$(16)"08":Î$ 130 ÃÌÏÓÅ1 ***************************************************************************** ÓÙÓ ÌÉÓÔ -------- ÁN INCOMPLETE BUT USEFUL LIST OF COMMONLY USED ÓÙÓ COMMANDS. ---------------------------------------------------------------------------- ÓÙÓ ÈÅØ ÁÃÔÉÏÎ ---------------------------------------------------------------------------- 65126 $ÆÅ66 ÂASIC ×ARM ÓTART 64738 $ÆÃÅ2 ÂASIC ÃOLD ÓTART 59626 $Å8ÅÁ ÓCROLL ÓCREEN ONE LINE 59516 $Å87à ÍOVE ÃÒÓÒ ÄOWN ONE LINE 58726 $Å566 ÈOME THE ÃURSOR (ÔOP-ÌEFT ÃORNER) 58692 $Å544 ÃLEAR ÓCREEN & ÈOME ÃURSOR 58266 $Å39Á ÐRINT ÓTART-UP ÍESSAGE 57194 $ÄÆ6Á ÒESET ÆÁÓÔÌÏÁÄ (ÒTRNS TO ÄIRECT ÍODE) 42115 $Á483 ÒETURN TO ÂÁÓÉà & DON'T ÐRINT ÒÅÁÄÙ 42100 $Á474 ÒETURN TO ÒÅÁÄÙ ***************************************************************************** ÍÏÒÅ ÓÙÓ ÖÁÌÕÅÓ ÓÙÓ 65511 ÃLOSES ALL OPEN FILES. ÓÙÓ 58250 ÉNITIALIZE. ÓÙÓ 59903 ÃLEARS LINE OF TEXT. ÓÙÓ 59062 ÁDVANCES CURSOR. ÓÙÓ 59626 ÓCROLLS A LINE. ÓÙÓ 59137 ÐREVIOUS LINE. ÓÙÓ 42562 ÎÅ× ***************************************************************** Á ÐÌÅÁÓÁÎÔ ÂÅÌÌ ÐÏËÅ54273,70:ÐÏËÅ54278,249: ÐÏËÅ54296,15:ÐÏËÅ54276,17: ÐÏËÅ54276,16 ***************************************************************** ÐÁÕÓÅ ÉÎ ÐÒÏÇÒÁÍ ÔHIS COMMAND WILL PAUSE THE PROGRAM WHILE THE ÓÈÉÆÔ ÌÏÃË KEY IS PRESSED: ×ÁÉÔ 654,1,1 ÔHIS IS A GOOD WAY TO SYNCHRONIZE A PROGRAM WITH AN EXTERNAL PROCESS. ********************************************************************* ÕÎÌÕÃËÙ ÎÕÍÂÅÒ ÆOR A SURPRISING RESULT, ENTER THIS NUMBER IN IMMEDIATE MODE: 350800 [ÒÅÔÕÒÎ] *********************************************************************** ÃÏÒÒÅÃÔ ÂÙÔÅÓ ÆÒÅÅ ?ÆÒÅ(0)-(ÓÇÎ(ÆÒÅ(0)0(0)*65535+3 ************************************************************************ ÐOPULAR ÐOKES --------------------------------------- ÐÏËÅ ×ÉÔÈ ÅÆÆÅÃÔ ÒÅÓÔÏÒÅ --------------------------------------- 56325 0-255 ÃHANGE ÃÒÓÒ ÂLINK ÓPEED 53281 0-15 ÃHANGE ÂACKGROUND ÃOLOR 53280 0-15 ÃHANGE ÂORDER ÃOLOR 53272 21 ÕPPER ÃASE & ÇRAPHICS 53272 23 ÌOWER ÃASE & ÕPPER ÃASE 53265 11 ÂLANK ÓCREEN 27 819 246 ÄISABLE ÓAVE 245 808 239 ÄISABLE ÓTOP ËEY 237 808 234 " ÓTOP/ÒESTORE/ÌIST 237 792 193 ÄISABLE ÒESTORE ËEY 71 788 52 ÄISABLE ÓTOP ËEY 49 775 168 ÄISABLE ÌIST 167 775 171 ÃRASH ON ÌIST *167* 774 0 ÌIST-ÌINE ÎMBRS ÏNLY 26 770/771 106/223ÒESET ÆÁÓÔÌÏÁÄ (MUST BE ENTERED IN ONE LINE) 770/771 131/164ÄISABLE ÆÁÓÔÌÏÁÄ (ENTER IN ONE LINE) 657 128 ÄISABLE ÓHIFT ËEY 0 650 128 ÁLL ËEYS ÒEPT(ÎONE=64)0 649 0 ÄISABLE ËEYBOARD 10 646 0-15 ÃHANGE ÃHARACTER ÃOLOR 214 0-24 ÓET ÃÒÓÒ TO ÔHIS ÒOW (ÍUST FOLLOW WITH ÐÒÉÎÔ) 211 0-79 ÓET ÃÒÓÒ ÔO ÔHIS ÃOLUMN 204 0 ÂLINK ÃÒÓÒ ÄURING ÇET >0 198 0 ÃLEAR ËEYBOARD ÂUFFER 153 15 ÄISABLE ËEYBOARD 0 152 0 ÃLOSE ÁLL ÆILES - 22 35 ÌIST W/NO LINENUMBERS 25 19 32 ÄELETE '?' ON ÉNPUT 0 ÐÅÅË(65408) ËERNAL ÖERSION(ÌATEST = 3) ***************************************************************************** ÍÏÒÅ ÂÁÓÉà ÒÏÕÔÉÎÅÓ ------------------- Ñ.> ÈOW CAN É LIST THE DISK DIRECTORY WHEN USING A PROGRAM. (BUILT-IN TO THE PROGRAM AS A FEATURE). Á.> ÔHIS WILL WORK. ÏR YOU CAN CREATE AN ARRAY AND ENTER THE DATA IN B$ INTO THE ARRAY SO THAT YOU CAN LATER USE IT TO LOAD A FILE BY NUMBER, DISPLAY IT OR WHATEVER. 10 GOSUB350:END 350 Q$=CHR$(34):OPEN2,8,0,"$0:*" 360 GET#2,A$:A=-(ST<>0)-2*(A$=Q$):ONAGOTO370,380:GOTO360 370 T=0:CLOSE2:RETURN 380 GET#2,A$:A=-(A$=Q$):ONAGOTO390:B$=B$+A$:GOTO380 390 PRINTB$:B$="":GOTO360 Ñ.> ÈOW CAN É MAKE ÓEQ FILES? ÁND HOW CAN É SAVE THEM? Á.> THE BASICS ARE: ÙOU CREATE A ÓEQUENTIAL FILE BY OPENING IT, WRITING DATA TO IT AND THEN CLOSING IT. 10 OPEN2,8,2,"NAME,S,W":REM,S,W TELLS A DRIVE "ÓEQUENTIAL, ×RITE" 20 PRINT#2, "ÊOE ÊONES" 30 PRINT#2:CLOSE2 40 OPEN3,8,3,"NAME,S,R":REM THE ,S,R SAYS "ÓEQUENTIAL, ÒEAD" 50 FORI=0TO1:GET#3,A$:I=ST:PRINT A$;:NEXT 60 CLOSE3 ÙOU CAN WRITE ANY DATA THAT YOU HAVE. ÉF YOUR DATA IS NUMERICAL, IT IS BEST TO WRITE IT AS A CHARACTER STRING. AS X=150:X$=CHR$(X):PRINT#2,X$. ÔO READ IT USE: GET#2,X$:X=ASC(X$+CHR$(0)). ÔHE +CHR$(0) PREVENTS A CRASH IN CASE THE VALUE IS 0. ÔHE Ã64 WILL READ 0 AS A NULL STRING "" AND CRASH ON ASC(X$). ÔHAT IS A BUG, ACTUALLY. ÓÅÑÕÅÎÔÉÁÌ ÆÉÌÅÓ: ÓEQUENTIAL FILES ARE MOST COMMONLY USED AS ÔEXT ÆILES OR DATA FILES. ÙOU FIRST OPEN A SEQ FILE (WHETHER IT ALREADY EXISTS OR NOT) LIKE THIS: ÏÐÅÎ FILE#,DEVICE#,CHANNEL#,"0:FILENAME,TYPE,DIRECTION" ÔHE FILE NUMBER IS ANY NUMBER FROM 1 TO 15, IT REALLY DOESN'T MATTER. ÔHE DEVICE NUMBER IS THE NUMBER OF YOUR DRIVE, USUALLY 8. ÔHE CHANNEL NUMBER IS ANY NUMBER FROM 1 TO 14 (15 IS THE COMMAND CHANNEL). ÔHE FILENAME GOES NEXT FOLLOWED BY THE FILETYPE (Ó FOR SEQ FILE, Ð FOR PRG, Õ FOR USR, AND Ò FOR REL). ÔHE DIRECTION IS EITHER ÒEAD OR ×RITE, WHEN YOU FIRST OPEN THE FILE IT SHOULD BE ,× FOR WRITE. ÅXAMPLE: ÏÐÅÎ2,8,13,"0:ÓÅÑÆÉÌÅ,Ó,×" ÔHEN YOU CAN WRITE YOUR DATA TO THE FILE WITH THE FOLLOWING COMMAND: ÐÒÉÎÔ#FILE#,VARIABLE LIST ×HERE THE FILE NUMBER IS THE ONE YOU USED WHEN OPENING THE THING. ÅX: ÐÒÉÎÔ#2,Á$,Â$,Ú$ ×HEN FINISHED WITH THE FILE, BE SURE TO ÃÌÏÓÅFILE#... ÅX: ÃÌÏÓÅ2 ÎO SAVING NECESSARY. ÙOU CAN THEN READ THE FILE BY SUBSTITUTING THE × IN THE OPEN COMMAND FOR AN Ò, AND THEN USING THE ÉÎÐÕÔ# OR ÇÅÔ# COMMANDS INSTEAD OF THE ÐÒÉÎÔ# COMMAND. (ÅÄÉÔÏÒ'Ó ÎÏÔÅ: ÓEE THE EXTENSIVE FILE ELSEWHERE IN THIS ISSUE ON HOW TO USE ÓÅÑ FILES IN PROGRAMMING.) ***************************************************************************** ÆÉÌÅÎÁÍÅ ÓÕÆÆÉØÅÓ ------------------- ÆOR A MORE UNDERSTANDABLE DIRECTORY, TRY USING A SUFFIX AFTER A FILE NAME. ÁLSO, ÓINCE THE COMPUTER WORLD IS BECOMING MORE COMPATIBLE IT WOULD MAKE THE LIFE OF ÂULLETIN ÂOARD ÓYSTEM ÏPERATORS (ÓÙÓÏÐÓ) MUCH EASIER IF WE ALL TRIED TO FOLLOW THE FILENAME CONVENTIONS USED BY OTHER COMPUTERS. ÔHE ÍÓ-ÄÏÓ COMPUTERS AND OTHERS USE AN 8 LETTER FILE NAME FOLLOWED BY A PERIOD AND THEN A 3 LETTER EXTENSION THAT EXPLAINS THE FILETYPE. ÎO OTHER PERIODS OR COMMAS ARE USED IN THE FILENAME. ÆOR EXAMPLE, IF YOUR PROGRAM IS IN ÂÁÓÉÃ, YOU WOULD USE THE SUFFIX ".ÂÁÓ" SO YOUR PROGRAM NAME WOULD BE: ÐÒÏÇÒÁÍ.ÂÁÓ ÉF IT'S A DOCUMENTATION FILE, USE "ÄÏÃ" OR "ÔØÔ". ÈERE IS A LIST OF THE GENERALLY ACCEPTED SUFFIXES, MANY OF WHICH ARE USED IN ÃÐ/Í & ÍÓ-ÄÏÓ. .ÁÄÖ ÁÄÖÅÎÔÕÒÅ ÇÁÍÅ .ÁÒà ÁÒÃÅÄ ÆÉÌÅ (ÃÏÍÐÒÅÓÓÅÄ) .ÁÒÊ ÁÒÊ ÆÉÌÅÓ (ÃÏÍÐÒÅÓÓÅÄ) .ÁÒË ÁÒËÅÄ ÆÉÌÅ (ÃÏÍÐÒÅÓÓÅÄ) .ÁÓÍ ÁÓÓÅÍÂÌÅÒ ÓÏÕÒÃÅ ÆÉÌÅ .ÂÁË ÂÁÃË-ÕÐ ÆÉÌÅ .ÂÁÓ ÂÁÓÉà ÐÒÏÇÒÁÍ ÆÉÌÅ .ÃÁÔ ÃÁÔÁÌÏÇ ÄÁÔÁ ÆÉÌÅ .ÄÁÔ ÄÁÔÁ ÆÉÌÅ .ÄÂÆ ÄÁÔÁ ÂÁÓÅ ÆÉÌÅ .ÄÉÒ ÄÉÒÅÃÔÏÒÙ ÆÉÌÅ .ÄÏà ÄÏÃÕÍÅÎÔ ÆÉÌÅ .ÆÔÈ ÆÏÒÔÈ ÐÒÏÇÒÁÍ ÆÉÌÅ .ÇÉÆ ÇÉÆ ÆÏÒÍÁÔ ÁÒÔ ÆÉÌÅ .ÈÌÐ ÈÅÌÐ ÆÉÌÅ .ÉÄØ ÄÁÔÁ ÆÉÌÅ ÉÎÄÅØ .ÉÎÐ ÉÎÐÕÔ ÆÉÌÅ .ÌÉ ÌÉÂÒÁÒÙ ÆÉÌÅ (ÌÉÎËÅÄ ÆÉÌÅÓ) .ÌÓÔ ÐÒÉÎÔÅÒ ÆÉÌÅ .ÌÎØ ÌÙÎØÅÄ ÆÉÌÅ (ÌÉÎËÅÄ ÆÉÌÅÓ) .ÍÌÇ ÍÁÃÈÉÎÅ ÌÁÎÇÕÁÇÅ ÐÒÏÇÒÁÍ .ÍÕÓ ÍÕÓÉà ÆÉÌÅ .ÎÁÍ ÎÁÍÅ ÆÉÌÅ .ÏÂÊ ÍÁÃÈÉÎÅ ÌÁÎÇÕÁÇÅ ÐÒÏÇÒÁÍ .ÏÕÔ ÏÕÔÐÕÔ ÆÉÌÅ .ÐÁÓ ÐÁÓÃÁÌ ÐÒÏÇ ÆÉÌÅ (ÓÏÕÒÃÅ) .ÐÇÍ ÐÒÏÇÒÁÍ ÆÉÌÅ .ÐÉà ÐÉÃÔÕÒÅ ÆÉÌÅ .ÒÅÆ ÒÅÆÅÒÅÎÃÅ ÆÉÌÅ .ÒÐÔ ÒÅÐÏÒÔ ÆÉÌÅ .ÓÄÁ ÓÅÌÆ-ÄÉÓÓÏÌÖÉÎÇ ÁÒÃÈÉÖÅ (ÃÏÍÐÒÅÓÓÅÄ) .ÓÄÌ ÓÅÌÆ-ÄÉÓÓÏÌÖÉÎÇ ÌÙÎØ ÆÉÌÅÓ .ÓÅÔ ÓÅÔÕÐ ÆÉÌÅ .ÓÆØ ÓÅÌÆ-ÄÉÓÓÏÌÖÉÎÇ ÆÉÌÅÓ (ÃÏÍÐÒÅÓÓÅÄ) .ÓÒÔ ÓÏÒÔ ÆÉÌÅ .ÓÙÍ ÓÙÍÂÏÌ/ÃÈÁÒÁÃÔÅÒ ÆÉÌÅ .ÓÙÓ ÓÙÓÔÅÍ ÆÉÌÅ .ÔÅÌ ÔÅÌÅÐÈÏÎÅ ÎÕÍÂÅÒ ÆÉÌÅ .ÔÓÔ ÔÅÓÔ ÆÉÌÅ .ÔØÔ ÔÅØÔ ÆÉÌÅ .ÕÔÌ ÕÔÉÌÉÔÙ ÆÉÌÅ .ÖÁÒ ÖÁÒÉÁÂÌÅ ÆÉÌÅ .ÖÓÄ ÖÉÓÉÏÎ ÓÅÌÆ-ÄÉÓÓÏÌÖÅ (ÌÉÎËÅÄ ÆÉÌÅÓ) .ØÄÖ ÓÐÅÃÉÁÌ ÄÅÖÉÃÅ ÎÅÅÄÅÄ .ÚÉÐ ÚÉÐÐÅÄ ÆÉÌÅ (ÌÉÎËÅÄ ÆÉÌÅÓ) .128 Ã-128 ÍÏÄÅ ÏÎÌÙ ÏNE NEW PROBLEM IS THAT THERE ARE DIFFERENT PROGRAMS FOR ÚÉÐ AND ÁÒà USED IN THE ÍÓ-ÄÏÓ AND OTHER OPERATING SYSTEMS, BUT THE SAME FILE EXTENSION IS USED FOR BOTH FORMS OF THESE PROGRAMS ÉT HAS RECENTLY BECOME EVEN MORE CONFUSING BECAUSE WE CAN NOW ÕÎÁÒà ÍÓ-ÄÏÓ ÁÒà FILES THANKS TO A PROGRAM WRITTEN BY BY ÃHRIS ÓMEET. ÁNYONE HAVE A SOLUTION TO TELL WHICH IS WHICH?? ÁÒÊ ÆILES ARE NOT PRESENTLY MADE IN C64 FORMAT BUT SINCE É KNOW THAT SEVERAL PROGRAMMERS ARE WORKING ON IT É INCLUDED IT. ÉF ANYONE HAS ANYTHING É MISSED OR ADDITIONAL SUGGESTIONS FOR THIS FILE PLEASE FEEL FREE TO WRITE TO US OR COMMUNICATE IN THE ÃÂÍ ÅCHO OF ÆIDONET. É WILL UPDATE IT AS NEW INFORMATION BECOMES AVAILABLE. *****************************************************************************